#!/bin/bash

sudo python change_source.py
sudo pacman -Sy
sudo pacman -S yay paru
yay -S fish docker docker-compose

yay -S libdbusmenu-glib
sudo usermod -aG docker pan
sudo systemctl enable docker
sudo systemctl start docker
yay -S mariadb
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl enable mariadb
# sudo mysql_secure_installation
yay -S fcitx5-im fcitx5-chinese-addons fcitx5-anthy fcitx5-pinyin-moegirl fcitx5-material-color

yay -S unzip zip kitty neovim wget # alacritty tmux

# yay -S hyprland

yay -S ttf-fira-code noto-fonts-emoji ttf-jetbrains-mono-nerd wqy-microhei wqy-microhei-lite wqy-bitmapfont wqy-zenhei ttf-arphic-ukai ttf-arphic-uming adobe-source-han-sans-cn-fonts adobe-source-han-serif-cn-fonts noto-fonts-cjk

sudo cp ./file/oh-my-posh /usr/local/bin/oh-my-posh

# sudo cp ../fcitx5-themes/* /usr/share/fcitx5/themes -r

folder="$HOME/.poshthemes"

# 检查文件夹是否存在
if [ ! -d "$folder" ]; then
	# 如果不存在，则创建文件夹
	mkdir -p "$folder"
	unzip ./file/themes.zip -d ~/.poshthemes
	chmod u+rw ~/.poshthemes/*.omp.*
	echo "文件夹已创建: $folder"
else
	echo "文件夹已存在: $folder"
fi
sudo python input.py

chsh -s /usr/bin/fish

# folder1="$HOME/Pictures/ScreenShot"
#
# # 检查文件夹是否存在
# if [ ! -d "$folder1" ]; then
# 	# 如果不存在，则创建文件夹
# 	mkdir -p "$folder1"
# 	echo "文件夹已创建: $folder1"
# else
# 	echo "文件夹已存在: $folder1"
# fi

python config.py

python config_share.py

python clash.py

systemctl --user start clash

# cd ~/dotfiles/.docker/clash-meta/
# sudo docker-compose up -d
